/**
 * 添加编辑弹窗节点
 * @param node 添加的节点
 * @param x,y 添加的位置
 * @param title 标题
 * @param content 弹窗内容
 * @param fn 点击确定的回调函数
 */
function addNode(node,x,y,title,content) {
    node.after("<div class='edit_popup' id='edit_popup'>" +
        "<div class='arrow'></div>" +
        "<h3 class='popup_title'>"+title+"</h3>" +
        "<div class='popup_con'>" +
        "<form id='edit_popup_fr'>" +
        "<div class='popup_input'>" +
        content+
        "</div>" +
        "<div class='popup_buttons'>" +
        "<input id='confirmBtn' class='btn btn-info' type='button' value='确定' >" +
        "<input class='btn ml5' type='button' value='取消' onclick='javascript:$(\"#edit_popup\").remove();'>" +
        "</div>" +
        "</form>" +
        "</div>" +
        "<div class='clear'></div>" +
        "</div>");
    $("#edit_popup").css({left:(x-$("#edit_popup").width()/3),top:(y-$("#edit_popup").height()-8)});
    $("#edit_popup").fadeIn();

}


